﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using Microsoft.Owin;

namespace WebFabricator.org
{
    public class LoggerMiddleware : OwinMiddleware
    {
        public LoggerMiddleware(OwinMiddleware next)
            : base(next)
        {
       
        }

      
        public override async Task Invoke(IOwinContext context)
        {
            await context.Response.WriteAsync("Open");
            await this.Next.Invoke(context);
            await context.Response.WriteAsync("Close");
        }
    }
}